package utils;

import java.util.regex.Pattern;

/**
 * Created by xuyang on 2018/1/11.
 */
public class Strings {
    public static String nullToEmpty(String str) {
        return str == null ? "" : str;
    }

    public static boolean isNullOrEmpty(String str) {
        return str==null || str.isEmpty();
    }
}
